package com.longmao.eduorder.client;

import com.longmao.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author  longmao
 * @date  2022/2/28 10:39
 * Content:
 */
@Component
@FeignClient(name = "service-edu",fallback = CourseClientImpl.class)
public interface CourseClient {

    /**
     * 根据id进行查询课程信息
     */
    @PostMapping("/eduservice/coursefront/getCourseInfoOrder/{id}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
